package kim.vincent.adminserver.service;

import kim.vincent.adminserver.service.hysrtix.UserServerHystrixImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author fupan
 * @date 2018/7/6
 */
@FeignClient(value = "user-server",fallback = UserServerHystrixImpl.class)
public interface UserService {
    /**
     * getUsername
     *
     * @param username
     * @return
     */
    @RequestMapping(value = "/username", method = RequestMethod.GET)
    String getUsername(@RequestParam(value = "username") String username);
}
